//
//  OosContactQuery.m
//  Oos4ios
//
//  Created by Pablo Gonzalez on 3/29/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import "OosContactQuery.h"
#import <oos4ios/ApiUrlProvider.h>

@implementation OosContactQuery

@synthesize userSlug = mUserSlug;

+ (OosContactQuery *) queryFromUserSlug:(NSString *)slug
{
	OosContactQuery *query = [[OosContactQuery alloc] autorelease];
	query.userSlug = slug;
	return query;
}

- (void) setUserSlug:(NSString *) slug
{
	mUserSlug = [slug retain];
	NSString *url = [[ApiUrlProvider provider].contacts getUrl: slug, nil];
	[self setFeedURL: [NSURL URLWithString: url]];
}

- (void)dealloc
{
    [mUserSlug release];
    [super dealloc];
}

@end
